package org.accp.pojo;

import java.sql.Timestamp;

public class Sms {
    private Integer id;
    private String smText;
    private String smMoblie;
    private Timestamp smDate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSmText() {
        return smText;
    }

    public void setSmText(String smText) {
        this.smText = smText;
    }

    public String getSmMoblie() {
        return smMoblie;
    }

    public void setSmMoblie(String smMoblie) {
        this.smMoblie = smMoblie;
    }

    public Timestamp getSmDate() {
        return smDate;
    }

    public void setSmDate(Timestamp smDate) {
        this.smDate = smDate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Sms sms = (Sms) o;

        if (id != sms.id) return false;
        if (smText != null ? !smText.equals(sms.smText) : sms.smText != null) return false;
        if (smMoblie != null ? !smMoblie.equals(sms.smMoblie) : sms.smMoblie != null) return false;
        if (smDate != null ? !smDate.equals(sms.smDate) : sms.smDate != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (smText != null ? smText.hashCode() : 0);
        result = 31 * result + (smMoblie != null ? smMoblie.hashCode() : 0);
        result = 31 * result + (smDate != null ? smDate.hashCode() : 0);
        return result;
    }
}
